public class ApiResponse<T>
{
    public int Code { get; set; } = 0;
    public string Message { get; set; } = "ok";
    public T? Result { get; set; }
    public string Type { get; set; } = "Success";

    public ApiResponse() { }

    public ApiResponse(T? result, int code = 0, string message = "ok", string type = "Success")
    {
        Code = code;
        Message = message;
        Result = result;
        Type = type;
    }
}
